package com.lengxf.design;

/**
 * 具体策略类角色
 * By Lengxf
 */
public class StudentDiscount implements Discount {
    private final double DISCOUNT = 0.8;

    @Override
    public double calculate(double price) {
        System.out.println("学生票:");
        return price * DISCOUNT;
    }

}
